package com.yj_app.qualitytest.activity.sccjcx.presenter;

import android.app.Activity;
import android.util.Log;

import com.lzy.okgo.model.Response;
import com.yj_app.qualitytest.activity.sccjcx.contract.SccjCxContract;
import com.yj_app.qualitytest.activity.sccjcx.model.SccjCxModel;
import com.yj_app.qualitytest.base.mvp.BasePresenterImpl;
import com.yj_app.qualitytest.callback.DialogCallback;
import com.yj_app.qualitytest.info.TeamInfo;
import com.yj_app.qualitytest.info.WorkSpaceInfo;

public class SccjCxPresenter extends BasePresenterImpl<SccjCxContract.View,SccjCxContract.Model> implements SccjCxContract.Presenter {
    @Override
    protected SccjCxContract.Model createModel() {
        return new SccjCxModel();
    }

    @Override
    public void search(WorkSpaceInfo workSpaceInfo, TeamInfo teamInfo, String time, String no) {
        mModel.search(workSpaceInfo,teamInfo,time,no, new DialogCallback<String>((Activity) mView) {
            @Override
            public void onSuccess(Response<String> response) {
                Log.e("--",response.body());
            }
        });




    }
}
